<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <link rel="stylesheet" href="demo.css" />
        <style>
            * {
                margin: 0;
                padding: 0;
            }
            h1 {
                color: blue;
            }
            p {
                /* font-size: 30px; */
            }
            .p1 {
                background-color: yellow;
            }
            .p2 {
                color: aqua;
            }
            #p3 {
                color: chocolate;
            }
            div,
            h1,
            p {
                /* background-color: aqua; */
            }

            div p {
                /* font-size: 50px; */
            }
            div > p {
                /* font-size: 40px; */
            }
            a:hover {
                color: greenyellow;
            }
           
            .content::first-letter{
                font-size: 2em;
            }
            .content::first-line{
                color: red;
            }
        </style>
    </head>
    <body>
        <h1>标题</h1>
        <p style="border: 1px solid blue; font-size: 50px">段落</p>
        <p class="p1 p2">段落2</p>
        <p class="p1">段落3</p>
        <p id="p3">段落4</p>
        <div>
            <p>段落5</p>
            <h1>
                <p>段落6</p>
            </h1>
        </div>
        <div>
            <a href="http://www.baidu.com">百度</a>
        </div>
        <div>
            <p class="content">
                Lorem ipsum dolor sit amet consectetur adipisicing elit.
                Repellat esse doloribus aut molestias repudiandae ex quis quidem
                earum repellendus pariatur id recusandae, facere dolores,
                accusantium voluptates a fugiat fugit qui!
            </p>
        </div>
    </body>
</html>
